package cn.t.repository.order;


import cn.t.core.repoistory.impl.IRepository;
import cn.t.dto.order.OrderQueryRequest;
import cn.t.dto.order.QuotationQueryRequest;
import cn.t.enums.order.OrderTypeEnum;
import cn.t.model.order.OrderDO;

import java.util.List;

/**
 * 领料订单表(Order)领域仓库
 *
 * @author t
 * @since 2024-05-24 10:19:11
 */
public interface OrderRepository extends IRepository<OrderDO> {
    public Boolean  removeOrderById(Long orderId);
    OrderDO findInfoByModel(OrderDO dataDo);

      List<OrderDO> queryOrderList(OrderQueryRequest orderQueryDO, int start, Integer pageSize, String field, String direction);
         List<OrderDO> queryErrOrderList(OrderQueryRequest orderQueryDO, int start, Integer pageSize, String field, String direction);
     Long queryErrOrderCount(OrderQueryRequest orderQueryDO);
     Long queryOrderCount(OrderQueryRequest orderQueryDO, OrderTypeEnum orderType);

    List<OrderDO> orderQuoteOrders(QuotationQueryRequest orderQueryDO);
     void updateOrder(OrderDO orderDO);
}
